package com.itheima.pojo;

import com.itheima.anno.State;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Pattern;
import lombok.Data;
import org.hibernate.validator.constraints.URL;

import java.time.LocalDateTime;
@Data
public class BorrowRecord {
    private Integer id;//主键ID

    private Integer userId;
    @NotEmpty
    private String cardNumber;
    @NotNull
    private Integer bookId;

    private Integer operatorId;

    private Integer status;
    private LocalDateTime borrowTime;
    private LocalDateTime returnTime;
    private LocalDateTime expectedReturnTime;
    private LocalDateTime createTime;//创建时间
    private LocalDateTime updateTime;//更新时间
}
